package com.xwltz.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/data")
public class DataController {

    @RequestMapping("/result")
    public String result(@RequestParam(defaultValue = "1") Integer id) {
        return id + "1";
    }
}
